home *** CD-ROM | disk | FTP | other *** search
/ Champak 140 / (Vol 140) Sep 19 2011.iso / Games / red_cross_eru.swf / scripts / __Packages / gamebase / MapCell.as < prev    next >
Text File  |  2011-09-19  |  8KB  |  209 lines

  1. §§push(true);
  2. §§push(false);
  3. §§push(false);
  4. §§push(true);
  5. while(true)
  6. {
  7.    if(┬º┬ºpop())
  8.    {
  9.    }
  10.    if(┬º┬ºpop())
  11.    {
  12.    }
  13.    if(┬º┬ºpop())
  14.    {
  15.       break;
  16.    }
  17.    ┬º┬ºpush(true);
  18.    ┬º┬ºpush(false);
  19. }
  20. if(!e.f)
  21. {
  22.    e.f = new g();
  23. }
  24. §§pop();
  25. if(!e.f.h)
  26. {
  27.    f.h extends f[┬º┬ºconstant(7)];
  28.    var _loc2_ = f.h = function(cId, rId)
  29.    {
  30.       super();
  31.       this[┬º┬ºconstant(4)] = cId;
  32.       this[┬º┬ºconstant(5)] = rId;
  33.       this[┬º┬ºconstant(6)]();
  34.    }[┬º┬ºconstant(8)];
  35.    _loc2_[┬º┬ºconstant(6)] = function()
  36.    {
  37.       this[┬º┬ºconstant(9)] = _global[┬º┬ºconstant(10)][┬º┬ºconstant(11)];
  38.       this[┬º┬ºconstant(12)] = _global[┬º┬ºconstant(10)][┬º┬ºconstant(13)];
  39.       this[┬º┬ºconstant(14)] = this[┬º┬ºconstant(4)] + ┬º┬ºconstant(15) + this[┬º┬ºconstant(5)];
  40.       this[┬º┬ºconstant(16)] = (this[┬º┬ºconstant(4)] - 1) * this[┬º┬ºconstant(9)];
  41.       this[┬º┬ºconstant(17)] = this[┬º┬ºconstant(4)] * this[┬º┬ºconstant(9)];
  42.       this[┬º┬ºconstant(18)] = (this[┬º┬ºconstant(5)] - 1) * this[┬º┬ºconstant(12)];
  43.       this[┬º┬ºconstant(19)] = this[┬º┬ºconstant(5)] * this[┬º┬ºconstant(12)];
  44.       this[┬º┬ºconstant(20)] = this[┬º┬ºconstant(16)] + this[┬º┬ºconstant(9)] / 2;
  45.       this[┬º┬ºconstant(21)] = this[┬º┬ºconstant(18)] + this[┬º┬ºconstant(12)] / 2;
  46.       this[┬º┬ºconstant(22)] = new ┬º\┬º\┬ºconstant(23)┬º();
  47.       this[┬º┬ºconstant(24)] = new ┬º\┬º\┬ºconstant(23)┬º();
  48.    };
  49.    _loc2_[┬º┬ºconstant(25)] = function()
  50.    {
  51.       this[┬º┬ºconstant(26)] = [];
  52.       this[┬º┬ºconstant(26)][1] = !(this[┬º┬ºconstant(4)] > 1 && this[┬º┬ºconstant(5)] > 1) ? undefined : _global[┬º┬ºconstant(10)][┬º┬ºconstant(27)](this[┬º┬ºconstant(4)] - 1 + ┬º┬ºconstant(15) + (this[┬º┬ºconstant(5)] - 1));
  53.       this[┬º┬ºconstant(26)][2] = this[┬º┬ºconstant(5)] <= 1 ? undefined : _global[┬º┬ºconstant(10)][┬º┬ºconstant(27)](this[┬º┬ºconstant(4)] + ┬º┬ºconstant(15) + (this[┬º┬ºconstant(5)] - 1));
  54.       this[┬º┬ºconstant(26)][3] = !(this[┬º┬ºconstant(4)] < _global[┬º┬ºconstant(10)][┬º┬ºconstant(28)] && this[┬º┬ºconstant(5)] > 1) ? undefined : _global[┬º┬ºconstant(10)][┬º┬ºconstant(27)](this[┬º┬ºconstant(4)] + 1 + ┬º┬ºconstant(15) + (this[┬º┬ºconstant(5)] - 1));
  55.       this[┬º┬ºconstant(26)][4] = this[┬º┬ºconstant(4)] <= 1 ? undefined : _global[┬º┬ºconstant(10)][┬º┬ºconstant(27)](this[┬º┬ºconstant(4)] - 1 + ┬º┬ºconstant(15) + this[┬º┬ºconstant(5)]);
  56.       this[┬º┬ºconstant(26)][5] = this[┬º┬ºconstant(4)] >= _global[┬º┬ºconstant(10)][┬º┬ºconstant(28)] ? undefined : _global[┬º┬ºconstant(10)][┬º┬ºconstant(27)](this[┬º┬ºconstant(4)] + 1 + ┬º┬ºconstant(15) + this[┬º┬ºconstant(5)]);
  57.       this[┬º┬ºconstant(26)][6] = !(this[┬º┬ºconstant(4)] > 1 && this[┬º┬ºconstant(5)] < _global[┬º┬ºconstant(10)][┬º┬ºconstant(29)]) ? undefined : _global[┬º┬ºconstant(10)][┬º┬ºconstant(27)](this[┬º┬ºconstant(4)] - 1 + ┬º┬ºconstant(15) + (this[┬º┬ºconstant(5)] + 1));
  58.       this[┬º┬ºconstant(26)][7] = this[┬º┬ºconstant(5)] >= _global[┬º┬ºconstant(10)][┬º┬ºconstant(29)] ? undefined : _global[┬º┬ºconstant(10)][┬º┬ºconstant(27)](this[┬º┬ºconstant(4)] + ┬º┬ºconstant(15) + (this[┬º┬ºconstant(5)] + 1));
  59.       this[┬º┬ºconstant(26)][8] = !(this[┬º┬ºconstant(4)] < _global[┬º┬ºconstant(10)][┬º┬ºconstant(28)] && this[┬º┬ºconstant(5)] < _global[┬º┬ºconstant(10)][┬º┬ºconstant(29)]) ? undefined : _global[┬º┬ºconstant(10)][┬º┬ºconstant(27)](this[┬º┬ºconstant(4)] + 1 + ┬º┬ºconstant(15) + (this[┬º┬ºconstant(5)] + 1));
  60.    };
  61.    _loc2_[┬º┬ºconstant(30)] = function(px, py)
  62.    {
  63.       var _loc4_ = _global[┬º┬ºconstant(10)][┬º┬ºconstant(31)](px,py);
  64.       if(_loc4_ == this[┬º┬ºconstant(14)])
  65.       {
  66.          return true;
  67.       }
  68.       var _loc3_ = 1;
  69.       while(_loc3_ <= 8)
  70.       {
  71.          if(this[┬º┬ºconstant(26)][_loc3_][┬º┬ºconstant(14)] == _loc4_)
  72.          {
  73.             return true;
  74.          }
  75.          _loc3_ = _loc3_ + 1;
  76.       }
  77.       return false;
  78.    };
  79.    _loc2_[┬º┬ºconstant(32)] = function(p)
  80.    {
  81.       var _loc3_ = this[┬º┬ºconstant(24)][┬º┬ºconstant(33)];
  82.       var _loc2_ = 0;
  83.       while(_loc2_ < _loc3_)
  84.       {
  85.          if(this[┬º┬ºconstant(24)][_loc2_] == p)
  86.          {
  87.             return undefined;
  88.          }
  89.          _loc2_ = _loc2_ + 1;
  90.       }
  91.       this[┬º┬ºconstant(24)][┬º┬ºconstant(34)](p);
  92.    };
  93.    _loc2_[┬º┬ºconstant(35)] = function()
  94.    {
  95.       var _loc3_ = this[┬º┬ºconstant(24)][┬º┬ºconstant(36)]();
  96.       var _loc2_ = 1;
  97.       while(_loc2_ <= 8)
  98.       {
  99.          _loc3_ = _loc3_[┬º┬ºconstant(37)](this[┬º┬ºconstant(26)][_loc2_][┬º┬ºconstant(24)]);
  100.          _loc2_ = _loc2_ + 1;
  101.       }
  102.       return _loc3_;
  103.    };
  104.    _loc2_[┬º┬ºconstant(38)] = function(obj, includeNeighbours)
  105.    {
  106.       if(!this[┬º┬ºconstant(39)](obj))
  107.       {
  108.          this[┬º┬ºconstant(22)][┬º┬ºconstant(34)](obj[┬º┬ºconstant(40)]);
  109.          if(includeNeighbours)
  110.          {
  111.             var _loc3_ = this[┬º┬ºconstant(41)](obj);
  112.             var _loc2_ = 0;
  113.             while(_loc2_ < _loc3_[┬º┬ºconstant(33)])
  114.             {
  115.                _loc3_[_loc2_][┬º┬ºconstant(38)](obj);
  116.                _loc2_ = _loc2_ + 1;
  117.             }
  118.          }
  119.       }
  120.    };
  121.    _loc2_[┬º┬ºconstant(41)] = function(obj)
  122.    {
  123.       var _loc2_ = new ┬º\┬º\┬ºconstant(23)┬º();
  124.       var _loc7_ = obj[┬º┬ºconstant(20)] - obj[┬º┬ºconstant(42)] < this[┬º┬ºconstant(16)];
  125.       var _loc6_ = obj[┬º┬ºconstant(20)] + obj[┬º┬ºconstant(42)] > this[┬º┬ºconstant(17)];
  126.       var _loc4_ = obj[┬º┬ºconstant(21)] - obj[┬º┬ºconstant(42)] < this[┬º┬ºconstant(18)];
  127.       var _loc5_ = obj[┬º┬ºconstant(21)] + obj[┬º┬ºconstant(42)] > this[┬º┬ºconstant(19)];
  128.       if(_loc7_)
  129.       {
  130.          _loc2_[┬º┬ºconstant(34)](this[┬º┬ºconstant(26)][4]);
  131.          if(_loc4_)
  132.          {
  133.             _loc2_[┬º┬ºconstant(34)](this[┬º┬ºconstant(26)][1]);
  134.          }
  135.          if(_loc5_)
  136.          {
  137.             _loc2_[┬º┬ºconstant(34)](this[┬º┬ºconstant(26)][6]);
  138.          }
  139.       }
  140.       if(_loc6_)
  141.       {
  142.          _loc2_[┬º┬ºconstant(34)](this[┬º┬ºconstant(26)][5]);
  143.          if(_loc4_)
  144.          {
  145.             _loc2_[┬º┬ºconstant(34)](this[┬º┬ºconstant(26)][3]);
  146.          }
  147.          if(_loc5_)
  148.          {
  149.             _loc2_[┬º┬ºconstant(34)](this[┬º┬ºconstant(26)][8]);
  150.          }
  151.       }
  152.       if(_loc4_)
  153.       {
  154.          _loc2_[┬º┬ºconstant(34)](this[┬º┬ºconstant(26)][2]);
  155.       }
  156.       if(_loc5_)
  157.       {
  158.          _loc2_[┬º┬ºconstant(34)](this[┬º┬ºconstant(26)][7]);
  159.       }
  160.       return _loc2_;
  161.    };
  162.    _loc2_[┬º┬ºconstant(43)] = function(obj)
  163.    {
  164.       var _loc3_ = this[┬º┬ºconstant(22)][┬º┬ºconstant(33)];
  165.       var _loc2_ = 0;
  166.       while(_loc2_ < _loc3_)
  167.       {
  168.          if(this[┬º┬ºconstant(22)][_loc2_] == obj[┬º┬ºconstant(40)])
  169.          {
  170.             this[┬º┬ºconstant(22)][┬º┬ºconstant(44)](_loc2_,1);
  171.             break;
  172.          }
  173.          _loc2_ = _loc2_ + 1;
  174.       }
  175.    };
  176.    _loc2_[┬º┬ºconstant(39)] = function(obj)
  177.    {
  178.       var _loc3_ = this[┬º┬ºconstant(22)][┬º┬ºconstant(33)];
  179.       var _loc2_ = 0;
  180.       while(_loc2_ < _loc3_)
  181.       {
  182.          if(this[┬º┬ºconstant(22)][_loc2_] == obj[┬º┬ºconstant(40)])
  183.          {
  184.             return true;
  185.          }
  186.          _loc2_ = _loc2_ + 1;
  187.       }
  188.       return false;
  189.    };
  190.    _loc2_[┬º┬ºconstant(45)] = function(objectType)
  191.    {
  192.       var _loc5_ = new ┬º\┬º\┬ºconstant(23)┬º();
  193.       var _loc6_ = this[┬º┬ºconstant(22)][┬º┬ºconstant(33)];
  194.       var _loc3_ = 0;
  195.       while(_loc3_ < _loc6_)
  196.       {
  197.          var _loc4_ = _global[┬º┬ºconstant(46)][┬º┬ºconstant(47) + this[┬º┬ºconstant(22)][_loc3_]];
  198.          if(_loc4_ instanceof objectType)
  199.          {
  200.             _loc5_[┬º┬ºconstant(34)](_loc4_);
  201.          }
  202.          _loc3_ = _loc3_ + 1;
  203.       }
  204.       return _loc5_;
  205.    };
  206.    ┬º┬ºpush(┬º┬ºconstant(48)(f.h[┬º┬ºconstant(8)],null,1));
  207. }
  208. §§pop();
  209.